counterSort using C++