Active Nearest-Neighbor Learning in Metric Spaces