finished the programme assginment three, A algorrithm count mincut