public chain() { head = tail = null; length = 0; }
public node(T value) { next = null; data = value; }