Fixed bug in MinHash implementation