I am trying to understand the speed of the Binary Search algorithm. I understand it needs to operate on a sorted array. However if the array comes in unsorted and performing