binary search add method