Fixed #30.

The hashing loop didn't iterate properly over the data but just rehash the first block again and again.