simple calculator for matrix transformations in simplex method