Cleanup of rnalib towards CUDA implementation.