binary search tree asked in gate