Code associated with "ICON: an adaptation of infinite HMMs for time traces with drift", Ioannis Sgouralis, Steve Pressé*, Biophys. J., (2017).