Basic chunking downsampling. Also taking care of remainder.