expands 'boundedX' over horizon 'Nl'; 'n' gives length of x
function expandBoundedX input Integer[:] boundedX; input Integer Nl; input Integer n; output Integer[size(boundedX, 1)*Nl] outvec; end expandBoundedX;