Hierarchical grid implementation in Mithril