Using std::swap instead of CC_SWAP

CC_SWAP is deprecated. Use `std::swap` instead.