Phase 1: Sorting Algorithms