Statistical Computing in C++ and R