Problem 50 solution added. ~0.11 seconds running time.