Made generic and reusable doubly linked-list module. Doesn't have
anywhere near the functionality that one would expect from a library
linked-list, but I will add needed functionality as I go. The important
aspect is its reusability. Also performed some cleanup.