sorting algorithms written in visual studio