initial implementation for treemap