C++ Count Sort for Data Structures