made tree element order implicit
added offset parameter to moveTreeBranch
removed setTreeElementOrder
fixed tests accordingly