pub fn quick_select<T: Ord + Clone>(items: &[T], k: usize) -> Result<T, Error>
Returns the k-th smallest element (0-indexed) of items.
items
Returns Error::InvalidInput if k is out of range.
Error::InvalidInput
k