Updated code. CUDA C version with speed improvement, cuBase with parallelization, parameterization and profiling