Symbolic dynamics and the stable algebra of matrices