how to implement sliding windows quantile, such as window size is 1000 on data stream? how to remove element outside of window?