added Algorithms.cpp and working on main.cpp