Create main.cpp

- main file for new lib Version - implementing the main algorithm