Ongoing comments and suggestions culminated in a revised algorithm still implemented in a single while loop .
Ongoing comments and suggestions refined based on a collection of test cases and a performance profiler .
Ongoing comments and suggestions culminated in a revised algorithm still implemented in a single while loop but refined based on a collection of test cases and a performance profiler .