Limited-length suffix-array-based method for variable-length motif discovery in time series