Find the maximum cost path in a triangle