A C++ Elligator2 implementation