Update piece length algorithm

Current uTorrent client auto selects piece sizes from 16KiB to 8MiB while keeping the piece count below 1024.