building binary search tree and example tree on P310