Study shows how A.I. can accurately predict how people vote in elections