My implementation of a doubly linked list (w/ generics)