Better algorithms for selective sampling