Various small sorting algorithms