Add C implementation of quick select algorithm.