added cuda functions to pass cuda buffer from nodify to sortify instead of reallocating