debug info to stdout, algorithm output to outfile