changed resample_model to reduce data copying
clarified argument to log_likelihood is always an array