Improving code for Morton code creation.