adding single gaussian without viterbi code