--- from: http://rosettacode.org/wiki/Maximum_triangle_path_sum