 
         for i in stride(from: summarySuffixArray.count - 1, to: 1, by: -1) {
             let bytesIndex = summary.suffixOffsets[summarySuffixArray[i]]
-            let bucketIndex = state.input[bytesIndex].toInt()
+            let bucketIndex = state.input[bytesIndex]
             suffixOffsets[bucketTails[bucketIndex]] = bytesIndex
             bucketTails[bucketIndex] -= 1
         }

            guard j >= 0 && state.typemap[j] == .lType
                else { continue }

            let bucketIndex = state.input[j].toInt()
            guessedSuffixArray[bucketHeads[bucketIndex]] = j
            bucketHeads[bucketIndex] += 1
        }

                    typemap[i] = .sType
                }

                bucketSizes[bytes[i]] += 1
            }

            self.typemap = typemap
