The Characterization of Riordan Arrays and Sheffer-type Polynomial Sequences