templated Array class with higher order functions and templated math functions.