rewritten folding kernel for x2 speedup / removed unused folding kernels from kernels.cu