array access program to test the cache