Re-factored to test recursive solving