adding linked list simulation