Given a matrix algebra A with base ring a field, return the centre of A.
Given a matrix algebra A with base ring a field, together with a subalgebra S of A return the centralizer of S in A.