Combinatorial and hypergeometric identities via the Legendre polynomials--A computational approach