differenceND function
Combined differencing: ordinary then seasonal (order doesn't matter since they commute)
Implementation
List<double> differenceND(List<double> x, int d, int s, int D) {
var y = differenceOrdinary(x, d);
y = differenceSeasonal(y, s, D);
return y;
}