Improve the perfomance of getNodeParent in adjacency tree model. Note that with this improvements the speed of loading relative big tree is increased up to 50%.
We need to consider all similar methods to be improved.