bit revert version2, add two more lookup-table solutions