Go through files begin using Matrix and any instead of summing over size
In some places we will somtimes do thing like sum(size(source_matrix) > size(dest_matrix) + 1) ~= 0
. These places can be written much cleaner with things like the matrix function.
Basicly this is a code cleanup... :)))))