This is sample code for doing a binary search tree in C