Explanatory implementation of the simplex method