Revise 1

revised runtime error for the methods addFirst, addLast, removeFirst,
removeLast