Counting sort fixed
Valgrind changes

--leak-check=yes