maxf function

max with na.rm TRUE