Added generic height computation for tree. Also added nullable method implementation for all types of nodes.