[Tree]: complete insertNode method