The Optimal Timing of School Tracking