Without enough houses for its growing homeless population, the city is using machine learning to make its process fairer.