Added Node class and other traversal algorithms