gauss + backsub finished