Manipulating Predictions over Discrete Inputs in Machine Teaching