Cleaned up some code and added better way to determine order.
Dynamic tree height.