Implement c++/singly_linked_list_complete