My doubly linked list has two dummy nodes, head and tail. The addToFirst function works perfectly for me, but when I trying to use the same algorithm with addToBack, it keep