Add subroutine resample() to annealing module
Add subroutine resample() to annealing module

Subroutine resample() takes an array of likelihood weights and
samples from their cumulative probability distribution. The output
is an integer array indicating how many of each input weight was
selected during the resampling process.

mherman09/Hdef,mherman09/Hdef,mherman09/Hdef