If it is possible to have more than those two algorithms,
It would be nice to perform the algorithm selection through a string.

Could you add on which one a user should use and in which condition?