This function resamples blocks of indicies with random block lengths.
This code follows the MATLAB file of the Oxford MFE Toolbox written by Kevin Sheppard.
References
The Oxford MFE toolbox (http://www.kevinsheppard.com/wiki/MFE_Toolbox) by Kevin Sheppard