s-curve for LSH