Created and optimized a Vector2D class.

Updated some other core features of the engine.