POJ#1002 SORT be careful about the corner cases. Rank:11081