Change forloop condition to i<stopVal to make it clearer.
All values for plotting are ready (apart from number of checked permutations).
Values need to be packed into proper data structures for plotting.