change linked list handling of contacts to queue.h