Add a note about optimizing the algorithm