Used the Floating point comparison code for Matrix comparisons