imported doubly linked lists and implemented allocator with limits