Thanks, Olivier. I finally got what I thought was an improved algorithm working. It turns out it's no improvement after all. Thank you, T D. Noe, for cleaning up the published code! Jonathan