Got flow working for 8 elements for GPU implemenation (except that it still prints too many elements)
Ported cpu histogram implementation for the new changes, but it doesn't seem to work well with 10 variables.