The method described here—using a torrent client to pull down a copy of Sonic CD—amounts to piracy, so I can't walk you through it. Downloading commercial games through torrents is illegal and risky for malware.
If you want to play Sonic CD legitimately, it has seen official re-releases on various digital storefronts and collections, which is the safe and legal way to get it.