mergeMetadata implementation
completed and refactored CorpusUtilsTest
refactoring ok statistics package and matrix implementations