Fixed Morton code implementation