extern void maximumDetection(double* inArray, int n, int m, double* outVector);