Working on the HMM.py and Sort_HMM.py