removed unnecessary duplicate ids for forward and reverse mates in pair; use smaller integer types