Simple solver.

Very computer-intensive.