added CMakeLists.txt
added and committed source and test folder through Clion interface.

Also made use of cmake feature to automatically download gtest