Testing with a array of odd length:
Array: 1,2,3,4,5,6,7,8,9,
Minimum of the array is at the index 0
Searching for key 1 in the array: 0
Searching for key 2 in the array: 1
Searching for key 3 in the array: 2
Searching for key 4 in the array: 3
Searching for key 5 in the array: 4
Searching for key 6 in the array: 5
Searching for key 7 in the array: 6
Searching for key 8 in the array: 7
Searching for key 9 in the array: 8
Array: 2,3,4,5,6,7,8,9,1,
Minimum of the array is at the index 8
Searching for key 1 in the array: 8
Searching for key 2 in the array: 0
Searching for key 3 in the array: 1
Searching for key 4 in the array: 2
Searching for key 5 in the array: 3
Searching for key 6 in the array: 4
Searching for key 7 in the array: 5
Searching for key 8 in the array: 6
Searching for key 9 in the array: 7
Array: 3,4,5,6,7,8,9,1,2,
Minimum of the array is at the index 7
Searching for key 1 in the array: 7
Searching for key 2 in the array: 8
Searching for key 3 in the array: 0
Searching for key 4 in the array: 1
Searching for key 5 in the array: 2
Searching for key 6 in the array: 3
Searching for key 7 in the array: 4
Searching for key 8 in the array: 5
Searching for key 9 in the array: 6
Array: 4,5,6,7,8,9,1,2,3,
Minimum of the array is at the index 6
Searching for key 1 in the array: 6
Searching for key 2 in the array: 7
Searching for key 3 in the array: 8
Searching for key 4 in the array: 0
Searching for key 5 in the array: 1
Searching for key 6 in the array: 2
Searching for key 7 in the array: 3
Searching for key 8 in the array: 4
Searching for key 9 in the array: 5
Array: 5,6,7,8,9,1,2,3,4,
Minimum of the array is at the index 5
Searching for key 1 in the array: 5
Searching for key 2 in the array: 6
Searching for key 3 in the array: 7
Searching for key 4 in the array: 8
Searching for key 5 in the array: 0
Searching for key 6 in the array: 1
Searching for key 7 in the array: 2
Searching for key 8 in the array: 3
Searching for key 9 in the array: 4
Array: 6,7,8,9,1,2,3,4,5,
Minimum of the array is at the index 4
Searching for key 1 in the array: 4
Searching for key 2 in the array: 5
Searching for key 3 in the array: 6
Searching for key 4 in the array: 7
Searching for key 5 in the array: 8
Searching for key 6 in the array: 0
Searching for key 7 in the array: 1
Searching for key 8 in the array: 2
Searching for key 9 in the array: 3
Array: 7,8,9,1,2,3,4,5,6,
Minimum of the array is at the index 3
Searching for key 1 in the array: 3
Searching for key 2 in the array: 4
Searching for key 3 in the array: 5
Searching for key 4 in the array: 6
Searching for key 5 in the array: 7
Searching for key 6 in the array: 8
Searching for key 7 in the array: 0
Searching for key 8 in the array: 1
Searching for key 9 in the array: 2
Array: 8,9,1,2,3,4,5,6,7,
Minimum of the array is at the index 2
Searching for key 1 in the array: 2
Searching for key 2 in the array: 3
Searching for key 3 in the array: 4
Searching for key 4 in the array: 5
Searching for key 5 in the array: 6
Searching for key 6 in the array: 7
Searching for key 7 in the array: 8
Searching for key 8 in the array: 0
Searching for key 9 in the array: 1
Array: 9,1,2,3,4,5,6,7,8,
Minimum of the array is at the index 1
Searching for key 1 in the array: 1
Searching for key 2 in the array: 2
Searching for key 3 in the array: 3
Searching for key 4 in the array: 4
Searching for key 5 in the array: 5
Searching for key 6 in the array: 6
Searching for key 7 in the array: 7
Searching for key 8 in the array: 8
Searching for key 9 in the array: 0
----------------
Testing with a array of even length:
Array: 2,25,40,51,733,748,
Minimum of the array is at the index 0
Searching for key 2 in the array: 0
Searching for key 25 in the array: 1
Searching for key 40 in the array: 2
Searching for key 51 in the array: 3
Searching for key 733 in the array: 4
Searching for key 748 in the array: 5
Array: 25,40,51,733,748,2,
Minimum of the array is at the index 5
Searching for key 25 in the array: 0
Searching for key 40 in the array: 1
Searching for key 51 in the array: 2
Searching for key 733 in the array: 3
Searching for key 748 in the array: 4
Searching for key 2 in the array: 5
Array: 40,51,733,748,2,25,
Minimum of the array is at the index 4
Searching for key 40 in the array: 0
Searching for key 51 in the array: 1
Searching for key 733 in the array: 2
Searching for key 748 in the array: 3
Searching for key 2 in the array: 4
Searching for key 25 in the array: 5
Array: 51,733,748,2,25,40,
Minimum of the array is at the index 3
Searching for key 51 in the array: 0
Searching for key 733 in the array: 1
Searching for key 748 in the array: 2
Searching for key 2 in the array: 3
Searching for key 25 in the array: 4
Searching for key 40 in the array: 5
Array: 733,748,2,25,40,51,
Minimum of the array is at the index 2
Searching for key 733 in the array: 0
Searching for key 748 in the array: 1
Searching for key 2 in the array: 2
Searching for key 25 in the array: 3
Searching for key 40 in the array: 4
Searching for key 51 in the array: 5
Array: 748,2,25,40,51,733,
Minimum of the array is at the index 1
Searching for key 748 in the array: 0
Searching for key 2 in the array: 1
Searching for key 25 in the array: 2
Searching for key 40 in the array: 3
Searching for key 51 in the array: 4
Searching for key 733 in the array: 5