Update piece length algorithm

Matches current uTorrent algorithm.