Compact tree of Joseph Gray