initial implementation of mmap and random
use parallel arrays for quantum vector