added removeFirst, removeLast and clean methods to LinkedList