double linked list seems to work fine no memoryLeaks. TODO writ testprogram.