Modified the Doubly Node to generic type
Update all Node or DNode to generic types