Create findMax() in array