Create solver.cpp

Main file