Bug fixing for BiLinkedList