Change to morton encoding computation