pub fn move_to_front<T: Clone>(arr: &[T], idx: usize) -> Vec<T>
Move element at idx to the front of the slice. Returns a new vec.
idx