Update matrixAlg.py

Fixed formatting to make it consistent.