added private method in the list to insert a node