On Computation and Application of Optimal Transport