added isEqualToMatrix