some simple sorting algorithms