ShuffleCards implementation in C++