Refactored Doubly linkd list