Compare matrixes of heights