Constructing pairing-friendly elliptic curve