TwIST algorithm using CUDA