porting hierarchy functionality from the d3 treemap layout.
added missing files