private void traversal(final TreeNode t, final List<Long> list) {
        if (t.left != null) {
            traversal(t.left, list);
            list.add(t.value);
            if (t.right != null) {
                traversal(t.right, list);
            }
        }
    }