block_maxima function

Block maxima