Port patricia from Mowgli for string-tree storage.