Voltage regulator for memory device