Matrix: Added hash function and basic comparison operators.