The Limits of Gerrymandering