Cuda C implementation of jackknife resampling algorithm