In C++, data should be stored when a node is created to be inserted. The insert method should return true if the data is inserted successfully, and false otherwise. It is important to note that when inserting a new node into the binary search tree, this method should call the setHeights method to adjust the heights.
The find method, JNode* find(strings), should be used to find whether a string "s" is in the data in the tree. If the string is found, the method should return the node holding "s". Otherwise, it should return NULL.