Added thrust stream compaction, but something really weird is going on