[feat] added function for calculating distance between contents