Added binary search based slicing operation on time series.
Removed the global window.data; everything now takes a DATA attribute.