Modification for measure the time and the memory of the algorithms;