Implementation of Moses Charikar's simhashes in Ruby