added a CUDA version of Min (basically copy-paste from Max).
Merge pull request #24 from jonathantompson/min

added a CUDA version of Min (basically copy-paste from Max).