Quantized Random Projections and Non-Linear Estimation of Cosine Similarity