add a concatenate function to merge the list of vectors
clean the test_treshold function