atomicMin function sample for cuda 5.5