Refactored the Number3D class into Vector3 and Vector2D into Vector2.
A drastic change but necessary. See also issue #586