Simplify particle resampling

Was unnecessarily complicated. Divide cumulative frequency into
number-of-particles-required parts and sample. Simple.