more use of accelerate functions for array math.