some refactoring. ComputeNextIteration!(algo) computes for each chain, newparam, value(newparam), accpet/reject, and stores