LDSA: Learning Dynamic Subtask Assignment in Cooperative Multi-Agent Reinforcement Learning