MIT scientists are writing computer programs that can control large teams of robots or networks of devices with different functions.