Recursive and iterative binary search on an int array