add fast resampling code to ARHMM class