Approximate group context tree