In the old days, they do it manually (front run/trading leveraged indices futures orders) then call each other (pension funds, mutual fund, hedge fund, etc) first before buying/selling in Huge collaborated amount of stocks to push the indices futures already bought/sold ahead at the same time...