added function to insert node after another node
Added second part to insert function