An algorithm for solving the transportation problem when the shipping cost over each route is convex