correct a bug that can occur when use tolower function
add the possibility to put the algorithm in pause and resume after (also: some memory delete that weren't done before)