Some code refactorization.
New Vector2D class.