I added a custom "compare" routine in order to compute the difference of some point value relative to the previous point (instead of relative to the first point in