/// Returns the wiggle sorted version of the input.
///
/// Takes a list reference and returns a `Vec<i32>` or an error explaining the situation.
///
/// # Examples
///
/// Basic usage:
/// ```
/// let result = algorithmz::sorting::wiggle_sort(&[3, 5, 2, 1, 6, 4]).unwrap();
/// assert_eq!(result,[3, 5, 1, 6, 2, 4]);
/// ```
///
/// Match example:
/// ```
/// use algorithmz::sorting::wiggle_sort;
/// match wiggle_sort(&[3, 5, 2, 1, 6, 4]) {
/// Ok(n) => println!("The result was: {:?}",n),
/// Err(e) => eprintln!("The error was: {}",e),
/// }
/// ```