Ensemble learning HMM for motion recognition and retrieval by Isomap dimension reduction