Changed cudafilter to C++

Create CudaFilter functor, rather than C function