added matrix class and sbox