fixed some compilation issues, updated C++ makefile to be more robust, implemented first C++ sort test using Google Test