Use a better algorithm (and more expensive one).