Best Worst Case Algorithm