Updated resample-move algorithm