Added getDistance and isParentOf to nodes