Added the solver.

Please change paths as needed. Also install filemagic.