Add insert function for BST data structure.