Binary Search Tree implementation in C