minimum path in a triangle