Added quick select algorithm