C++ Vector2D class