Fixed the Text.equals() method to avoid blind type casting
Added Classes to Represent the Memento Pattern and also added some comments to the HTMLTree class to explain the Memento related methods