created queue and stack and added length to doubly linked list