Data structures for financial time series