Best-First Model Merging for Dynamic Learning and Recognition