More tests (sorted order and serialization)
Fixed empty tree case in getBalancedIndices()
Escaped angular brackets
Minor doc comments changes