selectHMMR function

selectHMMR implements a model selection procedure to select an optimal HMMR model with unknown structure.