matrices: More idiomatic and whitespace tidying
matrices: More idiomatic and whitespace tidying

Removed a temp variable used in a swap, and replaced
with a, b = b, a.
Removed blank lines.

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy