Do reductions for min/max/avg concentration etc. on the GPU

As part of #44 (closed) these were done on the host out of expediency, but they should be done on the device for better performance.