Compares two boolean values
static int compare(final bool x, final bool y) { if (x == y) { return 0; } return x ? 1 : -1; }