filterMatrix function

Filter a character matrix, returning either all continuous or all discrete characters