Added helper methods for solver class and started on the main solver
method