fn set_object<K: Clone>( m_dist: &mut Option<Vec<Vec<K>>>, i: usize, j: usize, value: K, )
Helper function to copy a value to a 2D array