Implementation of reduction without any limit in the number of dimensions.
Implementation of reduction without any limit in the number of dimensions.

Follows structure of the kernels to compute std & var.

luketwitter/cutorch,LinusU/cutorch,Zhen-hao/cutorch,Moodstocks/cutorch,hughperkins/cutorch,Moodstocks/cutorch,wickedfoo/cutorch,0wu/cutorch,luketwitter/cutorch,Zhen-hao/cutorch,soumith/cutorch,torch/cutorch,torch/cutorch,Schakirov/cutorch_my,torch/cutorch,Schakirov/cutorch_my,adamlerer/cutorch,clementfarabet/cutorch,wickedfoo/cutorch,hughperkins/cutorch,clementfarabet/cutorch,adamlerer/cutorch,yvan-sraka/cutorch,0wu/cutorch,yvan-sraka/cutorch,LinusU/cutorch