Update algorithmImplementation.h