change block_restore and add reshuffle
add output file
modify makefile
modify makefile