Add matrix package