restructued syncing in memory-based grammar tries