Allocation algorithm wrongly places thousands of Italian teachers