add a clever revbits implementation

from hackers delight.
Also add unit test for revbytes