Improved bag_of_tricks/distribution_stats

- defaults to automatic mode, unless a pattern is given
- command line arguments can be given in any order
- more options for the histogram
fixed CMakeLists