Add valgrind option to calculate in Result folder a file with memory usage of vary algorithm and with plotresult command you can plot result for memory and time.