reworked compareTo to account for code lengths and removed leftCode() and rightCode()
added work and notes on canonizeTree()