arrayAnalysis2.arrayTotal function added, although not completed