Locality Sensitive Hashing in Ruby