Compute gradients and histograms using CUDA in DalalTriggsHOG