Similar Items: Mathematics for Machine Learning