Adding morton code calculation functions.