Phonebook implementation with doubly linked lists