Practising sorting algorithms