Initial commit of solve.c