Started translation from flex

Started the translation from flex code, have XYPair and Point2D
complete, working on Vector2D