make root() constant
replace bytearray hack with 'int_from_byte' hack because it is slightly faster under pypy
array.array is more memory efficient than bytearray under pypy
remove a couple of unneeded operations
a tiny cleanup
bump to 0.5.1
Added tag 0.5.1 for changeset 91cc324f4faf