The index fund is a most unlikely hero for the typical investor.