solved bug at stats.correlation.pearson, and modified tools script to work with this class