matrix package