Java implementation of the simplex algorithm