The kind of finely tuned data crunching that fueled the 2012 election is spreading to another venue: the classroom.