Added a CMake Build System. Also fixed one failing test.