minimum cost transportation problem python