updated linked list insert functions