New Algorithms for Determining an Arbitrary Power of the Matrix of Dynamics of a Class of Digital Systems