Solved prob 23 (takes a very long time though)
Solved probelm 29