Move sha1 function into utils namespace
Off by one
Off by more than one
Check piece hashes