applyTopOrIncAndNotExclFilter function

Apply isTopOrIncAndNotExcl filter to a matrix