How LSH works