min/max functions and static sizing

arithmetic arrays now also support elementwise
min and max and can be statically sized via a
second template parameter.