add constructor to create a node with both previous and next node
specified.