Allocating Teams to Tasks: An Anytime Heuristic Competence-Based Approach