do some training about binary search