No-copy operation

Added 2 functions that perform in-place encryption and decryption. Reverse the indices used in the state array so it matches the way data is stored in memory.