add compute xi in baum.