node class for generic linked structures