Added mmap to matrix