staircase_indices() accepts an arbitrary number of (j,i) points and constructs a line of consecutive legs.