linkedlist: added kthtolast, removeduplicates, and deletemiddlenode, begin working on partition algorithm