Added functions: extending slice and preparing observations formalization
Added HMM initialization