Added sorting of AIN array
To reduce the effort for postprocessing the analog input data, the data is stored sorted by channel. There is still a single array used to flexibility how many channels acquire, but instead of one index the current index for each channel where to store the data is tracked in the ADbasic process.
Also, a bug of the initial output values is fixed and the check for the AIN array size removed (of the input time is too large, an error is raised in labscript).