adds a node in vertical linkedlist