implement the complete elliptic integral of the first kind