Organization in preparation for CUDA implementation