suffix array with mlr optimization