fix a bug in binary search: low and high index can't equal