add detect linkedListCycle and reorder list