c++ implementation of  RKC/ROCK4