Simple matrix calculator