code: private static final int findSameDataBlock(int data[], int dataLength,
                                                 int otherBlock, int step) 
      {
          // ensure that we do not even partially get past dataLength
          dataLength -= DATA_BLOCK_LENGTH;
  
          for (int block = 0; block <= dataLength; block += step) {
              if(equal_int(data, block, otherBlock, DATA_BLOCK_LENGTH)) {
                  return block;
              }
          }
          return -1;
      }
docs: Find the same data block
  @param data array
  @param dataLength
  @param otherBlock
  @param step