shared memory library implemented using mmap call and test program.