code: public Segment push(Segment segment) {
      segment.prev = this;
      segment.next = next;
      next.prev = segment;
      next = segment;
      return segment;
    }
docs: Appends {@code segment} after this segment in the circularly-linked list.
  Returns the pushed segment.