Added rect as an alias of edge
Vector2d and Line2d implementation