HMM modeling and comparison of two stocks