fix diagonal averaging method
Merge branch 'master' of https://github.com/nihtalak/SSA