This adds an implementation of the nth_element() algorithm. For now the algorithm is trivially implemented by calling sort().