implemented gauss elimination