Bajard-Kla-Muller algorithm

A shift-and-add algorithm for computing logarithms and exponentials.