more robust handling of non-cell inputs
minor tweak - last we see of this code
major refactor - new processing hierarchy for iteration
utility function for averaging a bunch of identically sized matrices