code: boolean contains(Linked<?> e) {
          return (e.getPrevious() != null)
                  || (e.getNext() != null)
                  || (e == first);
      }
docs: check whether the linked is contained within this linked deque.
  
  @param e The linked
  @return True if it is