Lemur: Log Parsing with Entropy Sampling and Chain-of-Thought Merging