implemented counting sort an added comments