Added DownsampleTransform

Downsample the rows and columns of a matrix.