Added the skeleton for a tree class and InvalidNodeExceptions.