Switch from allocating a per-thread array from the heap to a local array
to speed up histogramming by factor of 4.  Now the maximum number of fields
is limited at compile time, but can be easily changed in the future.
Histogram evaluator now automatically self-tunes the block and grid configuration
at startup for each PDF to maximize throughput for the given GPU and sample size.