public static function run($operations)
    {
        while (true) {
            $results = self::optimize($operations);
            if ($results == $operations) {
                return $results;
            }
            $operations = $results;
        }
    }