Scottsdale teacher finishes epic 40-day hike