initialize array with elements, sleeping ms between major cycles and ms between minor cycles.