refactor tree height
moved closer to correct tree node position calculation
moved closer to correct tree node position calculation
final tree node position calculations added