Preprocessing the sequences. Remove short and long sequences.