A competitive modular connectionist architecture