added radius step parameter and made memory mapped file a global pointer to avoid seg fault