Bug fix for gauss algorithm

This PR fixes a bug in the gauss algorithm. I also added a simple programm that can read a dense matrix from file in ascii format.