added ordering
Wrote a util method to sort a timeseries represented as two arrays. Refactored unit test lib.
template for storage
we now write to binary timeseries