Quasigroup detection