Memory-based approach