Added cpu gmp implementation (from internet).