Main function of the CUDA helper has been finished, it has to be tested though