Function Moved

Functions for the 2D vector have been moved from the main class to the
2DVector class as per suggestion. A few spelling errors have also been
fixed.