Fixed digit size for radix sort at 8, removed duplicate code in counting sort