Generalize our pipeline and save results of each algorithm to results.json