Factoring by the Greatest Common Monomial Factor