Understanding Referral Assignment Algorithms