added code for memory region flags (local and copy_on_access)
unmap_data struct now uses the flags UD_AUTO_UNMAP and UD_COPY_ON_ACCESS, copy_on_access feature not implemented in this commit