Wrote mincut helper functions, TODO's remaining