Similar Items: Random-Effects Algorithm for Random Objects in Metric Spaces