An implementation of the Moving window decomposition algorithm
