Summation identities involving certain classes of polynomials