initial work on supporting histogram mp and randomize allocated cuda data