update for poj2117,cut points