clear method

void clear()

Implementation

void clear() {
  _head = _tail = null;
  _length = 0;
}