WIP: build the track accumulating histogram logic.

Signed-off-by: Jean-Yves Tinevez <jean-yves.tinevez@pasteur.fr>