A Novel Data Structure And Anomaly Detection For Time Series Data