add basic algorithm tree structure