specalg-sorts: Fixed a bug related to async calls

Plus unused code deletion