d = [0 25 30;6000 -1 0;4000 0 -1;40 -1/200 -1/140]
d = pivot(d,2,2)
d = pivot(d,1,3)

