Practical Hash Functions for Similarity Estimation and Dimensionality Reduction