Compact tree of John Grundy