Bug fix for gauss algorithm

This PR fixes a bug (discovered by Reza) in the gauss algorithm. I also added a simple programm that can read a dense matrix from file in ascii format.
Cut and paste error. Will be corrected.