Added test for gaussian elimniation and fixed some things