An investigation of classification and clustering of sequential data