fix a bug in optimalCut.m (the order of innerList)