Refactor gaussian_elimination.py