Math in Our Democracy: Detecting and Preventing Gerrymandering