Repeatedly pruning. Work for easy case but still not fast enough.