Functions

Calculates the length of the path to a leaf

Calculates the starting bit of the path to a leaf