Simplex method solver