updated main.c to measure array creation times