Reeti's new code structure

I have made changes to .cpp and .hpp files. I also created CMake to compile executable and library files all together.