Implemented initializeRoot and locateChildPtr methods for non-leaves.