BigNum math: implementing cryptographic multiple precision arithmetic - Denis, Ton St. (learn how to implement efficient multiple precision algorithms Syngress, 2006)