Memory to heap and doubly LL
For linked list, put data on the heap. The implementation will be prone to fragmentation, so I will come back and write a better memory management strategy. Doubly linked list functions are also started.