Counting sort with PHP tested with PHPunit