first draft of triphone implementation