optimization: using bit masks for sets
commenting failing IDEA-129331