Updated Sort_HMM.topological_sort() to work with gmm for null/silent states using state.is_null() function