Import JSuffixArrays source and Anton's adapter for generic comparable types