array diagnostics
add array::sum()
finish gmm/hmm merging