add comment about using cons in the match expression
implement isIncreasingSliding