Implement grid / bucket sort using one kernel only