First working version of mcmf algorithm. Using DijkstraSearch without potentials i.e. solving for not all cases.