Implemented the Vector2 class.