initalise the piecewise1D type with an array size (n, 2). Calculates the CDF of this array. Input array