partitionList, rmDup, rmDupII