Mathematical rules could allow for better city planning, David Biello reports