started of binarysearch