Matrix multiply and decryptor written in C89