Fixed range check error when switching windows.
Slight refactoring and added memory leak check to test project. Fixed a few memory leaks.
Added memory leak test on exit.
Added 3D math static library project and google test framework.
Added gtest README file to solution.