school work...try to fix the problem of cyclic partition