i_max = ubound (a)