GPU optimized versions of TVAL3 algorithm