Revert "Updated 'the algorithm'"

This reverts commit f8e17cfd4a1ab0980ebee772494b371799f1a2a8.