Add algo array sorting recursively.