Added inital version of HMM class.
Version for 1D data.