initial code for Simplex Method