Update Node class and add different arguments to addData method of Tree class