bugfix: overflow check in loop for increasing the array size; bugfix: old average now initialized to first average calculated to prevent division by zero (also makes the delta reporting consistent as it will report 0% for the first test)