Few extension methods for GMP.