yy= linspace(1,8,8)
xx= dataset([1,2,3,4,4,5,6,5])
yy= link( xx, yy )
m= monotonicSubset(yy)
plot(m)