Merge if you like math!

GMP is no longer a dependency. If GMP does not exist, BC Math is used instead.
Does this need to be here? I don't see any documentation on how to use this or when to use this script.