Change the implementation of the SinglyLinkedList and add a DoublyLinkedList