add binarySearch and test passed