mincost function

Implements Minimum Cost Algorithm to solve transportation problem