[WIP] CUDA arithmetic

This branch enables arithmetic with CUDA.