Token *t1 = (Token*) p1, *t2 = (Token*) p2;
Token *t1 = *(Token**) p1, *t2 = *(Token**) p2;
static int compareTokens(const void* p1, const void* p2, void* /* data */){    Token *t1 = (Token*) p1, *t2 = (Token*) p2;    double delta = abs(t1->mProbability - 0.5) - abs(t2->mProbability - 0.5);    return (delta == 0.0 ? 0 : (delta > 0.0 ? 1 : -1));}