Variation of Binary Search