Use command line arguments for the algo + terminate after a number of cycles