Array operations and Binary Search