LongFlag class based on GMP library