This is a one-to-one mapping between binary trees and natural numbers.
This encode an n level tree with O(n) bits
This is a one-to-one mapping between binary trees and natural numbers.
This encode an n level tree with O(n) bits