averageDuplicatedRows method for collapsing text matrices
averageDuplicatedRows examples
some doc pages updated