Adding a new generic code for running and comparing different algorithms