moved output filename to a constant in algorithms.h