First functional version of Tree#insert (both iterative & recursive)