Implements Closure Table Model for Hierarchical Data