MNT Algorithm