6 useful array methods

added useful array methods class with min and max, their positions, and
sum and product of components