Further developed mincut solution, a lot TODO's