A Study of Residue Correlation within Protein Sequences and Its Application to Sequence Classification