added tests, started counting sort