code: public static boolean isZero(long[] v) {
      for(int i = 0; i < v.length; i++) {
        if(v[i] != 0) {
          return false;
        }
      }
      return true;
    }
docs: Test for the bitstring to be all-zero.
  
  @param v Bitstring
  @return true when all zero