pub fn chunk_vector_by_2<T>(
    vector: Vec<T>
) -> Result<Vec<[T; 2]>, InternalError>