load data for HMM