JAL-4134 compute normalised dot product for contact matrix similarities