public int maxLength(){
  if (mIsPaired) {
    return (int)Math.max(mLeft.maxLength(),mRight.maxLength());
  }
 else {
    return (int)mSingle.maxLength();
  }
}

public int maxLength ( ) { if ( mIsPaired ) { return ( int ) Math . max ( mLeft . maxLength ( ) , mRight . maxLength ( ) ) ; } else { return ( int ) mSingle . maxLength ( ) ; } }
convenience method for getting the maximum sequence length
