Refraction implemented
 - enabled CUDA recursion