Refactored vector2 class to separate file