Added beginnings of the BSN HMM code