cleanup of reverse bits code