Compute the " height " of a tree -- the number of nodes along the longest path from the root node down to the farthest leaf node .
public virtual int height ( Node node ) { if ( node == null ) { return 0 ; } else {