Tests multiple sorting algorithms and returns runtime