centerX function

Centering a squared matrix by row or column