Added model classes with some tests

Created tree, node and search algorithm classes. Also made creator
classes for the tree and algorithm classes. Tests also done on the tree,
node and algorithm classes.