feed algorithms by standard input instead of argv