Added matriz ampliada method.