added speed test for access to C array and vector