Renamed classes to use the term algorithm.