Calculate similarity between two contents