adding mmap_array class