fix PcaAggregator logic to avoid classcastexception from Double[][] to double[][]