Added a new constructor to Vector2D