add simple recursive solver.
adupt pep8.