Polishing solution implemented on C++.