PERF, CUDA: improvement of mean for CUDA backend.
PERF, CUDA: improvement of mean for CUDA backend.

- CUDA is still slower than OpenCL on same device
- At large sizes, OpenCL is 1.3x faster instead of 2x.
- Some optimizations not included in OpenCL because it hurts performance.

9prady9/arrayfire,arrayfire/arrayfire,9prady9/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,munnybearz/arrayfire,umar456/arrayfire,umar456/arrayfire,umar456/arrayfire,arrayfire/arrayfire,munnybearz/arrayfire,munnybearz/arrayfire,umar456/arrayfire,9prady9/arrayfire