Function matrixAbsoluteMedian