Binary Search | php