working on implement binary search