CUDA implementation of BM3D