added max,min,indexes,sums,sums2 routine