Problem 187 solution added. ~30.1 seconds running time.