Adding getParent(), and an assertion to getBranchIndexTo