implemented linear programming classification