Added function to compute depth and height of each node in tree