Updated TreeBuilder interface to throw InvalidTreeParsingException upon build. Provided InvalidTreeParsingException class that represents the exception that could potentially be thrown