Program 3: Cumulative distribution (2D physical displacements)