tree-based number representation for gigantic numbers and efficient arithmetic