Cayley-Hamilton theorem