Compact tree of Hemming