makes algorithms run, outputs time elapsed