BST basic operations in C