Improved serie creation performances

replaces some lists by arrays