added rudimentary sorting algorithms