New algorithm could help governments and resettlement agencies find the best places for refugees to relocate.