Add explicit keyword to TreeNode constructors and inline one-line methods