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