I am trying to implement moving block bootstraps that use overlapping and non-overlapping blocks methods (see https://en.m.wikipedia.org/wiki/Bootstrapping_(statistics), als