Corrected of of bounds error detected by cuda-memcheck.
Corrected of of bounds error detected by cuda-memcheck.

nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL,nicocarbone/CUDAMCFL