Improved performance of max subsampling 2d tester for CUDA backend