problem with permuting function repeating itself
LSH working