Create solver.c

what I have so far ..