first (completely unfinished --> work in progress) versions of my HMM-functions