Metareasoning-Based Learning for Classification Hierarchies