Fixed computation of Z-order and Hilbert coordinate

The three highest bits were lost...