Optimal districting and territory design. (2020)