Morton code implementation (not finished)