changed definition of Pearson distance, now defined on interval [0,2] in order to be always positive
updated Instance API to be compatible with DoubleVector
minor change in Math API
instance now requires a template parameter
support for templates
compatibility fix for modified API