start removing gmm from hmm; debug array indexing; search()'s signature