Implemented Best Fit and Worst Fit