pub fn sorted_stakes_with_index(
    peers: &[ContactInfo],
    stakes: Option<&HashMap<Pubkey, u64>>
) -> Vec<(u64, usize)>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator