function to convert from readable mem notation back to a byte count