Refactored TimeSeries element retrieval, using binary search, added more specs