Enabled time limit for the sorting algorithm.

@bsoetaer