Started implementing counting sort functions