Index funds are a cheap and easy way to invest that have made some investors a lot of money in recent years.