Similar Items: Density Estimation Using the Perceptron