Smaller class sizes improve student learning, experts say. But budget constraints are forcing some districts to cut teachers.