addFirst(dataOrNode) {
    const node = getNode(dataOrNode);
    if(this.head) {
      node.next = this.head;
    } else {
      this.tail = node;
    }
    this.head = node;
    this.length++;
    return node;
  }
Add element to the head
@param data