Working version of Kneser-Ney Interpolated HMM + refactorings.