Removes duplicate matrices from the output of qvmmi