WIP: general Jaqaman cost matrix creator for track segments.

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>