An ART2-TPM neural network for automatic pattern classification