some binary search improvements
+binary tree pointer implementation