Add methods addFirst() and addLast().