My submission

Matrix inversion adaptation of mean calculation