Integrate improved bulk-based CUDA merge implementation.

Fixes #397