binary search tree done recursively and non-recursively in c and c plusplus