added space for the other sorts  + function to print output