Q1) Write down a program to compute Pearson correlation coefficient by using parallel loop templates from Intel Threading Building Blocks library (TBB).
The input data are given in two arrays a and b of values of type double. The length of each array is 1000. You need to write a C++ program which
i) implements a serial (not using parallelism) algorithm for computing Pearson correlation coefficient of data presented in arrays a and b;
ii) implements a parallel algorithm using parallel loop templates from TBB library for computing the same;
iii) for a given data computes the Pearson correlation by both serial and parallel algorithm;
iv) prints out the results of both algorithms and the acceleration achieved by paralleliza-tion;