Analysis of an identification algorithm arising in the adaptive estimation of markov chains