Simple reversible function BX implementation as well