while( this.sequences.get(sequenceIndex).getRecordCount()<recordIndex) {
recordIndex-=this.sequences.get(sequenceIndex).getRecordCount();
sequenceIndex++;
if( sequenceIndex>this.sequences.size() ) {
throw new MLDataError("Record out of range: " + index);
}
}
this.sequences.get(sequenceIndex).getRecord(recordIndex, pair);
}