function [blockDist] = blockDistance(blockA, blockB) blockDist = sum(sum( (blockA-blockB).^2 ));