Given preferences for 6 people in a 6 bedroom house, calculates best way to assign rooms.