setBitString implementation & array comparator