Optimize a search algorithm for finding specific course attributes within a large dataset for coursefinder ai.