Learning Correlation Space for Time Series