Changed gauss to 6 iterations