eliminated inefficient memory copy version of bucket window sliding