Bubble sort is a sorting algorithm, not searching algorithm.
If you prefer to use simple searching algorithm, such as linear or sequential search for the maximum value, you can refer to the following pseudocode:
Let n be the number of values in an array of bin[]
var i, max of integer
max = 1
For i:=2 to number_of_values
If bin[i] > bin[max] Then max = i
End
The maximum value in the list will be bin[max]
=================================
The above code's advantage is minimize the IO operation to the array.