memory management library