A Hierarchical Data Structure for Picture Processing