Problem 49 solution added. ~0.004 seconds running time.