Printouts and timing test code
Update sort algorithm and  test printing