Remove Duplicates from sorted list II, reference from heartfire.cc