improve visualisePDFHistory() in Single Gaussian HMM