$ 0 0 , Since the HierarchySlicer provides similarfunctionality, you could download it and try to view its source code.