added chris' normalize() function to baldus-movement