Improved stored representation of commit message heatmap

Instead of storing a count at each character position, store a histogram of line length vs frequency for each line as a list of (length, frequency) tuples.