Matrix multiplication calculator with variables