An alternative, more efficient, version of suffix.cpp. I expect this version to replace suffix.cpp once I'm sure it works.