Minor edits
useAlgorithm() checks for trivial input