Toward Computational Theory of Imitation: An Account for the Mechanism of Imitation Based on Dynamical Invariants