added binary search without pagewise reading