The theory and applications of collective investment