move the solution to its own method
create a method for branch and bound solution