Turning into doubly linked list now. Insert at tail and delete contents functional. No leaks.