Added Morton ordering code