Added pop() and insertElementAtIndex() methods to LinkedList.