CLI: configurable algorithm and output