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.
why binary?