OO implementation of DlinkedList. Not tested