insert functionality modified to insert multiple nodes
traversal and insert functionality working