trying to speed up catBelongingRegions
Failing at speeding up things