Assigning doctors with specializations