Minimum cut problem implemented.
Main func not needed.