Update algorithm_impl.h

Correct a typo