Investing in early childhood education brings a big return across multiple generations.