K-theory for C^* -algebras associated with subshifts