binary search table initial implementation