Extracting Market Trends from the Cross Correlation between Stock Time Series