implement linked list constructor and basic ops