Program 1: Cumulative distribution of displacements