Added a second version of convertTo21BitAndXorMSB