Implement our own faster RCP implementation

With default settings, there doesn't seem to be any difference (it shouldn't be).
With `WITH_CSYMPY_RCP=yes` and as of c4815fc, this brings 23% speedup on the `expand2` benchmark, and speedup on other benchmarks as well.