Finding The Greatest Common Monomial Factor