Fixed small bugs. Added framework to use Munkres for max flow problem