Replacing ops-to-histogram production code.

The time-optimized(?) version in use before did not work. Replaced with
the same, naive, used in translate-memtrace-to-ops.py.  It's still
there, commented out.  It might be necessary to use this for larger
datasets, such as Opera.