Added matrix comparison