Approximating Sliding Windows by Cyclic Tree-Like Histograms for Efficient Range Queries