finish binary search in array