Computation of optimum routes for ship weather routing