Fixed bugs in Vector, added Vector2d and Polar2d