Adding matrix package