Implement Counting Sort.

- Minor modification to merge_arrays which clears things up.
- Clean up test code by using test_array_sort()