Added a method to calculate the similarity for 5x2 2x2 matrices. This is needed for this merge request in Rec. Only the generic version is implemented.
FYI @graven