find_max function

Find maximum value of a vector