bool isSingleton(const Cell* L) { if(L == NULL) return false; else if(L->next == NULL) return true; else return false; }