adding site compression for ancestral state reconstruction