Removed debugging prints from sort