finished removedDuplicates in LinkedList and a custom array partition fxn