How to find Magnitude and Direction of a Vector