Preference-Based Batch and Sequential Teaching