Code associated with "An introduction to infinite HMMs for single molecule data analysis", Ioannis Sgouralis, Steve Pressé*, Biophys. J., (2017).