added ability to pass any scoring function to classify