write rfisher in C++
implement C++ version of rfisher