Adds getAncestorsWithoutRoot()

Method for retrieving all ancestors of a node, but
excluding the root node.