Projective Set implementation in C++ and JS.