e2.5b: Fixed to share all the subtrees that can be shared
e2.6: Sorted map
Throwing the right exception instead of the exception that was being thrown because I was trying to throw a string