C++ algorithms practice with googletest unit tests