Problem 29 solution added. ~0.01 seconds running time.