Finished the buildTree and printNode algroithms.