add asum method for Array