Middle Term Factorization Calculator