Implemented helper function findInsertLead to traverse the tree