master
linearize
function linearize (blocks, blockWidth, blocksPerRow, blockHeight, blocksPerCol, verbose) {