Write sorting algorithms like a noob.