Working on CUDA volume renderer/ Ran into problem with recursive call