cpp implementation for cs

~~todo: cpp implementation~~