Solving an optimal transportation problem which deals with the reallocaiton of (probability) mass from one probability distribution to another under a cost function