Fixed matrix == operator, and changed != to use ==.