https://hgpu.org/?p=7245
GPU acceleration of the particle filter: the Metropolis resampler