pass algorithm as command-line option