Update RAMIndex to use Cython.