Finding zeros and their multiplicities given a polynomial function written in factored form