An Algorithm for Establishing District Boundaries.