I'm working on an algorithm which calculates the square root of 2 to many decimal places. I'm iterating a pair of integers which get very large, and I think I have some decent speed but I want to reserve memory so that GMP doesn't have to keep re-allocating as the integers get larger.