adding bucketIndex to windowToIndex map