fills array with specified size, calculates sorting execution time