Average Case and Smoothed Competitive Analysis of the Multi-Level Feedback Algorithm