The popularity of index funds has exploded over the last few decades, changing the way individuals invest their assets.